import 'package:flutter/material.dart';
import '../model/screen_arg.dart';


class PeoplePage extends StatelessWidget {
  const PeoplePage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    final ScreenArg args = ModalRoute.of(context)!.settings.arguments as ScreenArg;
    return Scaffold(
      appBar: AppBar(
        title: const Text('People page'),
        centerTitle: true,
        backgroundColor: Colors.green,
      ),
      body: Center(
        child: Column(
          children: [
            Expanded(child: Container()),
            Text('name: ${args.name}'),
            Text('info: ${args.mark}'),
            Expanded(child: Container()),
          ],
        )
        
      ),
    );
  }
}